﻿namespace WinFormsApp1.bo;

//日计划表List<TPSTR04>
public struct TPSTR04
{
    public int stat;

    [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.ByValTStr,
        SizeConst = 24 * 2 + 1)]
    public string REC_CREATOR; //记录创建责任者 

    [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.ByValTStr,
        SizeConst = 14 * 2 + 1)]
    public string REC_CREATE_TIME; //记录创建时刻 

    [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.ByValTStr,
        SizeConst = 24 * 2 + 1)]
    public string REC_REVISOR; //记录修改责任者 

    [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.ByValTStr,
        SizeConst = 14 * 2 + 1)]
    public string REC_REVISE_TIME; //记录修改时刻 

    [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.ByValTStr,
        SizeConst = 1 * 2 + 1)]
    public string ARCHIVE_FLAG; //归档标记 

    [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.ByValTStr,
        SizeConst = 10 * 2 + 1)]
    public string ARCHIVE_STAMP_NO; //归档邮戳号 

    [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.ByValTStr,
        SizeConst = 4 * 2 + 1)]
    public string PLAN_BACKLOG_CODE; //计划工序代码 

    [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.ByValTStr,
        SizeConst = 2 * 2 + 1)]
    public string PLAN_STATUS; //计划状态 

    [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.ByValTStr,
        SizeConst = 2 * 2 + 1)]
    public string PLAN_TYPE; //计划类型 

    [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.ByValTStr,
        SizeConst = 10 * 2 + 1)]
    public string PLAN_NO; //作业计划号 

    public int PLAN_SEQ_NO; //计划序号

    public int PLAN_SEQ_NO_DAY; //日计划序号 

    [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.ByValTStr,
        SizeConst = 8 * 2 + 1)]
    public string PLAN_DATE_FROM; //计划日期起 

    [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.ByValTStr,
        SizeConst = 8 * 2 + 1)]
    public string PLAN_DATE_TO; //计划日期止

    [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.ByValTStr,
        SizeConst = 10 * 2 + 1)]
    public string RL_NO; //轧批号 

    [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.ByValTStr,
        SizeConst = 2 * 2 + 1)]
    public string RL_ITEM_NO; //轧批项目号 

    public double ROLL_DIA; //轧制外径 

    public double ROLL_WAL_THICK; //轧制壁厚 

    public int REQR_ROLL_TUBE; //需轧制根数 

    public double REQR_ROLL_WT; //需轧制重量

    [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.ByValTStr,
        SizeConst = 5 * 2 + 1)]
    public string PROD_MID_CODE; //品名中分类代码 

    [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.ByValTStr,
        SizeConst = 30 * 2 + 1)]
    public string PROD_MID_CNAME; //品名中分类中文 

    [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.ByValTStr,
        SizeConst = 4 * 2 + 1)]
    public string MTRL_NO; //材质号 

    [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.ByValTStr,
        SizeConst = 50 * 2 + 1)]
    public string MTRL_TEXT; //材质正文

    public double BILLET_DIA; //管坯直径 

    [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.ByValTStr,
        SizeConst = 2 * 2 + 1)]
    public string GROOVE_CODE; //主孔型代码 

    public double GROOVE_SIZE; //主孔型尺寸 

    [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.ByValTStr,
        SizeConst = 10 * 2 + 1)]
    public string GROOVE_DESC; //主孔型说明

    [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.ByValTStr,
        SizeConst = 2 * 2 + 1)]
    public string SUB_GROOVE_CODE; //子孔型代码 

    [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.ByValTStr,
        SizeConst = 10 * 2 + 1)]
    public string SUB_GROOVE_DESC; //子孔型说明

    [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.ByValTStr,
        SizeConst = 1 * 2 + 1)]
    public string SUB_GROOVE_GROUP_CODE; //子孔型分类代码 

    [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.ByValTStr,
        SizeConst = 60 * 2 + 1)]
    public string SUB_GROOVE_TYPE_TEXT; //子孔型分类正文 

    public double BILLET_LEN; //坯长度

    public double BILLET_WT; //坯重量 

    public double RAW_LEN; //棒材长度

    [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.ByValTStr,
        SizeConst = 20 * 2 + 1)]
    public string MAT_NO; //材料号 

    [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.ByValTStr,
        SizeConst = 4 * 2 + 1)]
    public string MAT_KIND; //物料种类 

    [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.ByValTStr,
        SizeConst = 10 * 2 + 1)]
    public string PONO; //制造命令号 

    [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.ByValTStr,
        SizeConst = 10 * 2 + 1)]
    public string CZ_RL_NO; //初轧轧批号 

    [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.ByValTStr,
        SizeConst = 20 * 2 + 1)]
    public string ORIGIN_HEAT_NO; //外购供应商炉号

    public int PLAN_TUBE; //计划根数 

    public double PLAN_WT; //计划重量 

    public int DEVO_TUBE; //投料根数

    public double DEVO_WT; //投料重量 

    public int MAT_TUBE; //材料根数 

    public double MAT_THEORY_WT; //材料理论重量 

    public double MAT_ACT_WT; //材料实际重量

    [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.ByValTStr,
        SizeConst = 1 * 2 + 1)]
    public string FIX_FLAG; //定尺标记

    public double LEN_FROM; //长度起

    public double LEN_TO; //长度止 

    [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.ByValTStr,
        SizeConst = 15 * 2 + 1)]
    public string STOCK_PLACE_NO; //材料库位号

    public int SAW_CUT; //锯切刀数 

    public double CUT_LEN; //切割长度 

    public double CUT_WT; //切割重量

    public int CUT_BILLET; //切割支数

    public double REMAIN_LEN; //剩余长度 

    public int REMAIN_BILLET; //剩余切割支数

    public double REMAIN_WT; //余材重量 

    [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.ByValTStr,
        SizeConst = 14 * 2 + 1)]
    public string START_PROD_TIME; //开始生产时刻

    [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.ByValTStr,
        SizeConst = 14 * 2 + 1)]
    public string END_PROD_TIME; //结束生产时刻 

    public int PLAN_PROD_TIME; //计划生产时间 

    [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.ByValTStr,
        SizeConst = 14 * 2 + 1)]
    public string PLAN_SEND_TIME; //计划发送时刻

    [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.ByValTStr,
        SizeConst = 1 * 2 + 1)]
    public string PLAN_SEND_FLAG; //计划发送标记

    [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.ByValTStr,
        SizeConst = 24 * 2 + 1)]
    public string PLAN_MAKER; //计划责任者

    [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.ByValTStr,
        SizeConst = 500 * 2 + 1)]
    public string REMARK_PS; //计划备注

    [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.ByValTStr,
        SizeConst = 10 * 2 + 1)]
    public string UNRULL_FLAG; //违规标记

    [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.ByValTStr,
        SizeConst = 1 * 2 + 1)]
    public string PLAN_TENDAY_FLAG; //计划旬标记

    [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.ByValTStr,
        SizeConst = 1 * 2 + 1)]
    public string SPVISE_FLAG; //监造标记 

    [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.ByValTStr,
        SizeConst = 1 * 2 + 1)]
    public string COME_PROC_FLAG; //来料加工标记

    [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.ByValTStr,
        SizeConst = 1 * 2 + 1)]
    public string BILLET_TAIL_FLAG; //扫尾坯标记 

    [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.ByValTStr,
        SizeConst = 1 * 2 + 1)]
    public string BILLET_USAGE_FLAG; //代用坯标记 

    [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.ByValTStr,
        SizeConst = 1 * 2 + 1)]
    public string STEEL_MAKING_METHOD_CODE; //冶炼方式代码 

    [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.ByValTStr,
        SizeConst = 60 * 2 + 1)]
    public string STEEL_MAKING_METHOD; //冶炼方式

    [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.ByValTStr,
        SizeConst = 1 * 2 + 1)]
    public string BILLET_PROC_MODE_CODE; //管坯加工方式代码

    [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.ByValTStr,
        SizeConst = 20 * 2 + 1)]
    public string BILLET_PROC_MODE; //管坯加工方式 

    [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.ByValTStr,
        SizeConst = 1 * 2 + 1)]
    public string BILLET_STRIP_CODE; //管坯剥皮方式代码 

    [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.ByValTStr,
        SizeConst = 20 * 2 + 1)]
    public string BILLET_STRIP; //管坯剥皮方式 

    [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.ByValTStr,
        SizeConst = 2 * 2 + 1)]
    public string BILLET_DIF_CODE; //管坯分类代码

    public double BILLET_DIA_STRIP; //管坯剥皮前直径 

    [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.ByValTStr,
        SizeConst = 15 * 2 + 1)]
    public string MAT_APP_NO; //材料申请号 

    public int PLAN_EXEC_SEQ_NO; //计划执行序号 

    [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.ByValTStr,
        SizeConst = 250 * 2 + 1)]
    public string REMARK; //备注 
}